//
//  UIView+CLFrame.h
//
//  Created by Charlie on 15/4/21.
//  Copyright (c) 2015年. All rights reserved.
//

#import <UIKit/UIKit.h>

@interface UIView (CLFrame)

/// Offset of origin with (x,y), and size with (w,h)
- (void)setFrameOffset:(CGPoint)origin size:(CGSize)size;

@property (nonatomic, assign) CGPoint origin;
@property (nonatomic, assign) CGSize size;

@property (nonatomic, assign) CGFloat x;
@property (nonatomic, assign) CGFloat y;

@property (nonatomic, assign) CGFloat centerX;
@property (nonatomic, assign) CGFloat centerY;

@property (nonatomic, assign, readonly) CGFloat bottom;
@property (nonatomic, assign, readonly) CGFloat right;

@property (nonatomic, assign) CGFloat height;
@property (nonatomic, assign) CGFloat width;


/// 
- (CGRect)convertFrameToSuperview:(UIView *)superview;

@end
